
<!doctype html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html><head><title>Python: module simpleparse.common.iso_date_loose</title>
</head><body bgcolor="#f0f0f8">

<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="heading">
<tr bgcolor="#7799ee">
<td valign=bottom>&nbsp;<br>
<font color="#ffffff" face="helvetica, arial">&nbsp;<br><big><big><strong><a href="simpleparse.html"><font color="#ffffff">simpleparse</font></a>.<a href="simpleparse.common.html"><font color="#ffffff">common</font></a>.iso_date_loose</strong></big></big></font></td
><td align=right valign=bottom
><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="file:/home/mcfletch/pylive/simpleparse/common/iso_date_loose.py">/home/mcfletch/pylive/simpleparse/common/iso_date_loose.py</a></font></td></tr></table>
    <p><tt>Somewhat&nbsp;Looser&nbsp;ISO&nbsp;date&nbsp;format&nbsp;YYYY-MM-DD&nbsp;HH:mm:SS&nbsp;+HH:mm<br>
&nbsp;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ISO_date_loose&nbsp;--&nbsp;YYYY-MM-DD&nbsp;format,&nbsp;with&nbsp;a&nbsp;month&nbsp;and&nbsp;day&nbsp;optional,<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;month&nbsp;or&nbsp;day&nbsp;may&nbsp;be&nbsp;specified&nbsp;without&nbsp;leading&nbsp;0<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ISO_time_loose&nbsp;--&nbsp;HH:mm:SS&nbsp;format,&nbsp;with&nbsp;minutes&nbsp;and&nbsp;seconds&nbsp;optional<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;all&nbsp;numbers&nbsp;may&nbsp;be&nbsp;specified&nbsp;without&nbsp;leading&nbsp;0<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ISO_date_time_loose&nbsp;--&nbsp;YYYY-MM-DD&nbsp;HH:mm:SS&nbsp;+HH:mm&nbsp;format,<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;with&nbsp;time&nbsp;optional&nbsp;and&nbsp;TimeZone&nbsp;offset&nbsp;optional,<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;same&nbsp;format&nbsp;for&nbsp;date&nbsp;and&nbsp;time&nbsp;as&nbsp;above<br>
&nbsp;<br>
Interpreter:<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#MxInterpreter">MxInterpreter</a><br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Interprets&nbsp;the&nbsp;parse&nbsp;tree&nbsp;as&nbsp;mx.DateTime&nbsp;values<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Date&nbsp;and&nbsp;DateTime&nbsp;-&gt;&nbsp;DateTime&nbsp;objects<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Time&nbsp;only&nbsp;-&gt;&nbsp;RelativeDateTime</tt></p>
<p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#aa55cc">
<td colspan=3 valign=bottom>&nbsp;<br>
<font color="#fffff" face="helvetica, arial"><big><strong>Modules</strong></big></font></td></tr>
    
<tr><td bgcolor="#aa55cc"><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td>&nbsp;</td>
<td width="100%"><table width="100%" summary="list"><tr><td width="25%" valign=top><a href="mx.DateTime.html">mx.DateTime</a><br>
<a href="simpleparse.common.chartypes.html">simpleparse.common.chartypes</a><br>
</td><td width="25%" valign=top><a href="simpleparse.common.html">simpleparse.common</a><br>
<a href="simpleparse.common.numbers.html">simpleparse.common.numbers</a><br>
</td><td width="25%" valign=top><a href="simpleparse.objectgenerator.html">simpleparse.objectgenerator</a><br>
</td><td width="25%" valign=top></td></tr></table></td></tr></table><p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#ee77aa">
<td colspan=3 valign=bottom>&nbsp;<br>
<font color="#ffffff" face="helvetica, arial"><big><strong>Classes</strong></big></font></td></tr>
    
<tr><td bgcolor="#ee77aa"><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td>&nbsp;</td>
<td width="100%"><dl>
<dt><font face="helvetica, arial"><a href="simpleparse.dispatchprocessor.html#DispatchProcessor">DispatchProcessor</a>(<a href="simpleparse.processor.html#Processor">Processor</a>)
</font></dt><dd>
<dl>
<dt><font face="helvetica, arial"><a href="simpleparse.common.iso_date_loose.html#MxInterpreter">MxInterpreter</a>
</font></dt></dl>
</dd>
</dl>
 <p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#ffc8d8">
<td colspan=3 valign=bottom>&nbsp;<br>
<font color="#000000" face="helvetica, arial"><a name="MxInterpreter">class <strong>MxInterpreter</strong></a>(<a href="simpleparse.dispatchprocessor.html#DispatchProcessor">DispatchProcessor</a>)</font></td></tr>
    
<tr bgcolor="#ffc8d8"><td rowspan=2><tt>&nbsp;&nbsp;&nbsp;</tt></td>
<td colspan=2><tt>Interpret&nbsp;a&nbsp;parsed&nbsp;ISO_date_time_loose&nbsp;in&nbsp;GMT/UTC&nbsp;time&nbsp;or&nbsp;localtime<br>&nbsp;</tt></td></tr>
<tr><td>&nbsp;</td>
<td width="100%"><dl><dt>Method resolution order:</dt>
<dd><a href="simpleparse.common.iso_date_loose.html#MxInterpreter">MxInterpreter</a></dd>
<dd><a href="simpleparse.dispatchprocessor.html#DispatchProcessor">DispatchProcessor</a></dd>
<dd><a href="simpleparse.processor.html#Processor">Processor</a></dd>
<dd><a href="simpleparse.processor.html#MethodSource">MethodSource</a></dd>
</dl>
<hr>
Methods defined here:<br>
<dl><dt><a name="MxInterpreter-ISO_date_loose"><strong>ISO_date_loose</strong></a>(self, (tag, left, right, sublist), buffer)</dt><dd><tt>Interpret&nbsp;the&nbsp;loose&nbsp;ISO&nbsp;date&nbsp;format</tt></dd></dl>

<dl><dt><a name="MxInterpreter-ISO_date_time_loose"><strong>ISO_date_time_loose</strong></a>(self, (tag, left, right, sublist), buffer)</dt><dd><tt>Interpret&nbsp;the&nbsp;loose&nbsp;ISO&nbsp;date&nbsp;+&nbsp;time&nbsp;format</tt></dd></dl>

<dl><dt><a name="MxInterpreter-ISO_time_loose"><strong>ISO_time_loose</strong></a>(self, (tag, left, right, sublist), buffer)</dt><dd><tt>Interpret&nbsp;the&nbsp;loose&nbsp;ISO&nbsp;time&nbsp;format</tt></dd></dl>

<dl><dt><a name="MxInterpreter-__init__"><strong>__init__</strong></a>(self, inputLocal<font color="#909090">=1</font>, returnLocal<font color="#909090">=1</font>)</dt></dl>

<dl><dt><a name="MxInterpreter-offset"><strong>offset</strong></a>(self, (tag, left, right, sublist), buffer)</dt><dd><tt>Calculate&nbsp;the&nbsp;time&nbsp;zone&nbsp;offset&nbsp;as&nbsp;a&nbsp;date-time&nbsp;delta</tt></dd></dl>

<dl><dt><a name="MxInterpreter-offset_sign"><strong>offset_sign</strong></a>(self, (tag, left, right, sublist), buffer)</dt><dd><tt>Interpret&nbsp;the&nbsp;offset&nbsp;sign&nbsp;as&nbsp;a&nbsp;multiplier</tt></dd></dl>

<hr>
Data and other attributes defined here:<br>
<dl><dt><strong>dateName</strong> = 'ISO_date_loose'</dl>

<dl><dt><strong>day</strong> = &lt;IntInterpreter object @ 46912541567528&gt;<dd><tt>Interpret&nbsp;an&nbsp;integer&nbsp;(or&nbsp;unsigned&nbsp;integer)&nbsp;string&nbsp;as&nbsp;an&nbsp;integer</tt></dl>

<dl><dt><strong>float</strong> = &lt;FloatInterpreter object @ 46912541567744&gt;<dd><tt>Interpret&nbsp;a&nbsp;standard&nbsp;float&nbsp;value&nbsp;as&nbsp;a&nbsp;float</tt></dl>

<dl><dt><strong>hour</strong> = &lt;IntInterpreter object @ 46912541567528&gt;<dd><tt>Interpret&nbsp;an&nbsp;integer&nbsp;(or&nbsp;unsigned&nbsp;integer)&nbsp;string&nbsp;as&nbsp;an&nbsp;integer</tt></dl>

<dl><dt><strong>int</strong> = &lt;IntInterpreter object @ 46912541567528&gt;<dd><tt>Interpret&nbsp;an&nbsp;integer&nbsp;(or&nbsp;unsigned&nbsp;integer)&nbsp;string&nbsp;as&nbsp;an&nbsp;integer</tt></dl>

<dl><dt><strong>minute</strong> = &lt;IntInterpreter object @ 46912541567528&gt;<dd><tt>Interpret&nbsp;an&nbsp;integer&nbsp;(or&nbsp;unsigned&nbsp;integer)&nbsp;string&nbsp;as&nbsp;an&nbsp;integer</tt></dl>

<dl><dt><strong>month</strong> = &lt;IntInterpreter object @ 46912541567528&gt;<dd><tt>Interpret&nbsp;an&nbsp;integer&nbsp;(or&nbsp;unsigned&nbsp;integer)&nbsp;string&nbsp;as&nbsp;an&nbsp;integer</tt></dl>

<dl><dt><strong>offset_hour</strong> = &lt;IntInterpreter object @ 46912541567528&gt;<dd><tt>Interpret&nbsp;an&nbsp;integer&nbsp;(or&nbsp;unsigned&nbsp;integer)&nbsp;string&nbsp;as&nbsp;an&nbsp;integer</tt></dl>

<dl><dt><strong>offset_minute</strong> = &lt;IntInterpreter object @ 46912541567528&gt;<dd><tt>Interpret&nbsp;an&nbsp;integer&nbsp;(or&nbsp;unsigned&nbsp;integer)&nbsp;string&nbsp;as&nbsp;an&nbsp;integer</tt></dl>

<dl><dt><strong>second</strong> = &lt;FloatInterpreter object @ 46912541567744&gt;<dd><tt>Interpret&nbsp;a&nbsp;standard&nbsp;float&nbsp;value&nbsp;as&nbsp;a&nbsp;float</tt></dl>

<dl><dt><strong>timeName</strong> = 'ISO_time_loose'</dl>

<dl><dt><strong>year</strong> = &lt;IntInterpreter object @ 46912541567528&gt;<dd><tt>Interpret&nbsp;an&nbsp;integer&nbsp;(or&nbsp;unsigned&nbsp;integer)&nbsp;string&nbsp;as&nbsp;an&nbsp;integer</tt></dl>

<hr>
Methods inherited from <a href="simpleparse.dispatchprocessor.html#DispatchProcessor">DispatchProcessor</a>:<br>
<dl><dt><a name="MxInterpreter-__call__"><strong>__call__</strong></a>(self, value, buffer)</dt><dd><tt>Process&nbsp;the&nbsp;results&nbsp;of&nbsp;the&nbsp;parsing&nbsp;run&nbsp;over&nbsp;buffer<br>
&nbsp;<br>
Value&nbsp;can&nbsp;either&nbsp;be:&nbsp;(success,&nbsp;tags,&nbsp;next)&nbsp;for&nbsp;a&nbsp;top-level<br>
production,&nbsp;or&nbsp;(tag,&nbsp;left,&nbsp;right,&nbsp;children)&nbsp;for&nbsp;a&nbsp;non-top<br>
production.</tt></dd></dl>

<hr>
Methods inherited from <a href="simpleparse.processor.html#Processor">Processor</a>:<br>
<dl><dt><a name="MxInterpreter-__repr__"><strong>__repr__</strong></a>(self)</dt><dd><tt>Return&nbsp;a&nbsp;representation&nbsp;of&nbsp;the&nbsp;class</tt></dd></dl>

</td></tr></table></td></tr></table><p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#55aa55">
<td colspan=3 valign=bottom>&nbsp;<br>
<font color="#ffffff" face="helvetica, arial"><big><strong>Data</strong></big></font></td></tr>
    
<tr><td bgcolor="#55aa55"><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td>&nbsp;</td>
<td width="100%"><strong>_p</strong> = &lt;simpleparse.parser.Parser instance&gt;<br>
<strong>c</strong> = {'ISO_date_loose': LibraryElement(
    production = 'ISO_date_loose...enerator.Generator instance at 0x2aaaad6009e0&gt;,
), 'ISO_date_time_loose': LibraryElement(
    production = 'ISO_date_time_...enerator.Generator instance at 0x2aaaad6009e0&gt;,
), 'ISO_time_loose': LibraryElement(
    production = 'ISO_time_loose...enerator.Generator instance at 0x2aaaad6009e0&gt;,
)}<br>
<strong>declaration</strong> = "<font color="#c040c0">\n</font>&lt;date_separator&gt; := [-]<font color="#c040c0">\n</font>&lt;time_separator&gt; := ':'...te_loose, ([T ], ISO_time_loose)?, [ ]?, offset?<font color="#c040c0">\n</font>"<br>
<strong>haveMX</strong> = 1<br>
<strong>name</strong> = 'ISO_date_loose'</td></tr></table>
</body></html>